package com.lin.missyou.dto;

import com.lin.missyou.dto.validators.PasswordEqual;
import lombok.Builder;
import lombok.Getter;
import org.hibernate.validator.constraints.Length;

/**
 * @author gcq
 * @Create 2021-10-05
 */
@Builder
@Getter
@PasswordEqual(message = "密码不相等")
public class PersonDTO {
    @Length(min = 2, max = 10)
    private String name;
    private Integer age;
    private String password1;
    private String password2;
}